package com.geccocrawler.gecco.demo.heilongjiang;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: weixiaohu
 * Date: 2019/6/3
 * Time: 14:16
 */
@Getter
@Setter
@Gecco(
        matchUrl = "http://www.hl.lss.gov.cn/hljsyb/listView.jsp?type={type}&v1&id={id}",
        pipelines = {"haerbingPipeline"})
@ToString(exclude = "request")
public class Results implements HtmlBean {

    @RequestParameter("type")
    private String type;
    @RequestParameter("id")
    private String id;
    @Request
    private HttpRequest request;
    @HtmlField(cssPath="body > table:nth-child(3) > tbody > tr:nth-child(2) > td > table.border > tbody > tr")
    private List<Item> list;
}
